import {STORAGE_KEY} from '@/utils/const.js';

/**
 * 获取token
 */
function getToken() {
	return uni.getStorageSync(STORAGE_KEY.TOKEN) || '';
}

function setToken(token) {
	return uni.setStorageSync(STORAGE_KEY.TOKEN, token);
}

export {
	getToken,
	setToken
}